package com.bjpowernode.workbench.web.service.impl;

import com.bjpowernode.workbench.web.domain.Contacts;
import com.bjpowernode.workbench.web.mapper.ContactsMapper;
import com.bjpowernode.workbench.web.service.ContactsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContactsServiceImpl implements ContactsService {

    @Autowired
    private ContactsMapper contactsMapper;

    @Override
    public int insertContacts(Contacts contacts) {
        return contactsMapper.insertContacts(contacts);
    }

    @Override
    public List<Contacts> selectContactsByName(String fullname) {
        return contactsMapper.selectContactsByName(fullname);
    }
}
